/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
*                                                                        *
* Author: The ALICE Off-line Project.                                    *
* Contributors are mentioned in the code where appropriate.              *
*                                                                        *
* Permission to use, copy, modify and distribute this software and its   *
* documentation strictly for non-commercial purposes is hereby granted   *
* without fee, provided that the above copyright notice appears in all   *
* copies and that both the copyright notice and this permission notice   *
* appear in the supporting documentation. The authors make no claims     *
* about the suitability of this software for any purpose. It is          *
* provided "as is" without express or implied warranty.                  *
**************************************************************************/
//
//Xian-Guo Lu <lu@physi.uni-heidelberg.de>
//

#ifndef ALIANALYSISTASKAODPKRAA_H
#define ALIANALYSISTASKAODPKRAA_H

#ifndef ALIANALYSISTASKSE_H
#include "AliAnalysisTaskSE.h"
#endif

#include <TTreeStream.h>

class AliAODTrack;
class AliAODEvent;
class TTreeSRedirector;
class TH1I;
class TH1D;

typedef AliAODTrack typetrack;

class AliAnalysisTaskAODpkRaa : public AliAnalysisTaskSE
{
 public:
  
  AliAnalysisTaskAODpkRaa();
  ~AliAnalysisTaskAODpkRaa();
  void UserExec(Option_t *);
  void UserCreateOutputObjects();

 private:
  Bool_t CutInput();
  Bool_t CutEvent();
  void CutTrack(Int_t &nsel, typetrack *outtrk[]);
  TString GetRunInfo();

  AliAODEvent *fEvent; 
  TTreeStream *fStream;
  TTree *fTree;

  TList *fList;
  TH1I * fCuts;
  TH1I *fNsel;
  TH1D *fCen;
  TH1D *fEta;
  TH1I *fFilterBit;

  ClassDef(AliAnalysisTaskAODpkRaa, 0);
};
#endif

